{smcl}
{* 10apr2003}{...}
{hline}
help for {hi:myrereg}{...}
{right:Example estimation command from the ML book, 2d ed.}
{hline}

{title:The random-effects linear regression model}

{p 8 12 2}
{cmd:myrereg}
	{it:depvar}
	[{it:varlist}]
	[{it:weight}]
	[{cmd:if} {it:exp}]
	[{cmd:in} {it:range}]
	{cmd:,}
	{cmd:panel(}{it:varname}{cmd:)}
	[
	{cmdab:const:raints:(}{it:numlist}|{it:matname}{cmd:)}
	{cmdab:l:evel:(}{it:#}{cmd:)}
	{cmd:nolrtest}
	{cmdab:nolo:g}
	{cmdab:nocons:tant}
	{it:maximize_options}
	]


{p 4 4 2}
{cmd:iweight}s are allowed; see help {help weights}.  Note that weights must
be constant within panels.

{p 4 4 2}
{cmd:myrereg} shares the features of all estimation commands; see help
{help estcom}.


{title:Description}

{p 4 4 2}
{cmd:myrereg} uses {cmd:ml} to fit a random-effects linear regression model.


{title:Options}

{p 4 8 2}
{cmd:panel(}{it:varname}{cmd:)} identifies the panels or groups.

{p 4 8 2}
{cmd:constraints(}{it:numlist}|{it:matname}{cmd:)} specifies the
linear constraints to be applied for the model fit.
{cmd:constraints(}{it:numlist}{cmd:)} specifies the constraints by number.
{cmd:constraints(}{it:matname}{cmd:)} specifies a matrix that contains the
constraints.
Constraint numbers are defined using the
{cmd:constraint} command and are numbered; see help {help constraint}.  The
default is to perform unconstrained estimation.

{p 4 8 2}
{cmd:level(}{it:#}{cmd:)} specifies the confidence level, in percent,
for the confidence intervals of the coefficients; see help {help level}.

{p 4 8 2}
{cmd:nolrtest} indicates that the model significance test should be a Wald
test instead of a likelihood-ratio test.  This prevents the constant-only
model to be fit.  Note that options resulting in robust variance estimates and
{cmd:constraints()} imply this option.

{p 4 8 2}
{cmd:nolog} suppresses the iteration log.

{p 4 8 2}
{cmd:noconstant} suppresses the constant term (intercept) in the model.

{p 4 8 2}
{it:maximize_options} control the maximization process; see help
{help maximize}.  You should never have to specify them.


{title:Also see}

{p 4 14 2}
On-line:  help for {help xtreg}, {help constraint}
